@import "@/styles/variables";
.root {
  position: relative;

  &:not(.root_inline) {
    display: inline-flex;
  }
}

.buttons {
  display: flex;


  button {
    display: flex;
    align-items: center;
    padding: 8px 40px;
    width: 240px;

    color: rgba(#292d32, 0.5);
    font-size: 12px;
    white-space: nowrap;

    background: #fff;
    border: 1px solid #eeeeef;

    svg {
      min-width: 16px;
      width: 16px;
      height: 16px;
      margin-right: 12px;
    }

    &[data-tab-filled='true'] {
      color: $color-primary;
    }

    &[data-tab-active='true'] {
      color: $color-primary;
      border: 1px solid $color-primary;
    }
    &[disabled] {
      cursor: not-allowed;
    }

    &:first-child {
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
    }

    &:last-child {
      border-top-right-radius: 10px;
      border-bottom-right-radius: 10px;
    }
  }
}

.root_inline .buttons {
  margin-bottom: 16px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;

  button:last-child {
    margin-left: 10px;
  }
}

.dropdown {
  right: unset !important;
  left: 0;
}

.picker {
  display: flex;
  align-items: flex-start;
  justify-content: center;

  :global {
    .react-datepicker {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }
  }
}

.time {
  height: 303px;
  border: 1px solid #eeeeef;
  border-left: 0;

  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.time_head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;

  line-height: 1;
  font-weight: 700;
  font-size: 14px;

  border-bottom: 1px solid #eeeeef;
}

.time_lists {
  height: calc(100% - 37px);
  display: flex;
}

.time_list {
  height: 100%;
  list-style: none;
  padding: 0;
  margin: 0;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  &::-webkit-scrollbar {
    display: none;
  }

  &:last-child {
    border-left: 1px solid #eeeeef;
  }

  button {
    width: 44px;
    height: 36px;

    color: #a9abad;
    transition: 0.2s ease;

    &:hover {
      background: rgba(233, 241, 255, 0.38);
    }

    &[data-active='true'] {
      background: rgba(233, 241, 255, 0.38);
      color: $color-primary;
    }
  }
}

.realtorBtns {
  border: 1px solid $color-gray-500;
  border-radius: 6px;
  width: 482px;
  margin-bottom: 16px;

  .buttons {
    margin-bottom: 0;

    button {
      display: flex;
      justify-content: center;
      border: none;
      width: 50%;

      &:last-child {
        border-left: 1px solid $color-gray-500;
      }

      &[data-tab-active='false'] {
        opacity: 0.75;
      }
    }
  }

  .buttons:first-child {
    border-bottom: 1px solid $color-gray-500;
    border-radius: 6px;
  }
}
